﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="TrialBalancePrint.aspx.cs"
    Inherits="Main_Reports_Accounts_BalanceSheetPrint" Culture="en-GB" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
 
     <style type="text/css">
        .TreeView
        {
            border: solid 1px #d6d3ce;
        }
        .TreeView td
        {
            border: solid 1px #d6d3ce;
        }
        .TreeView tr
        {
            page-break-inside: avoid;
            page-break-after: auto;
        }
        .TreeView thead
        {
            display: table-header-group;
        }
        .TreeView tfoot
        {
            display: table-footer-group;
        }
    </style>

    <script src="../../../JavaScript/jquery-1.3.2.min.js" type="text/javascript"></script>
   <link href="../../../Styles/accounts.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
        $(document).ready(function() {
            var ss=window.opener.document.getElementById("divPrint").innerHTML;
            document.getElementById("divPrint").innerHTML=ss;

            $("#divPrint #tvHierarchyView span").css('display','inline');
            $("#divPrint #tvHierarchyView span").css('width','10px');
            $("#divPrint #tvHierarchyView span").html('&nbsp;&nbsp;');
            $("#divPrint #tvHierarchyView a").remove();
            $("#divPrint #tvHierarchyView img").remove();
            $("#divPrint #tvHierarchyView div").each(function() {     
                var txt = $(this).text();
                $(this).replaceWith("<span>"+txt+"</span>");

            });
            $("#divPrint #tvHierarchyView tr").each(function() {     
                var count = $(this).find('span').size();
                if(count==1)
                {
                    $(this).css('font-weight','bold');
                }
            });
             
            window.document.close();
            window.focus();
            window.print();
            window.close();      
        });
       //table { -fs-table-paginate: paginate; }
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div id="divPrint" style="margin:0px 2% 15px 2%; width:96%;">
    </div>   
    </form>
</body>
</html>
